# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-impacket
_pkgname=impacket
pkgver=0.9.21
pkgrel=1
pkgdesc="Collection of Python3 classes providing access to network packets"
url="https://github.com/SecureAuthCorp/impacket"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-impacket" # Backwards compatibility
provides="py-impacket=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/share/doc # LICENSE and README.md
}

sha512sums="594bae33f917f0704e7b28645b2f201d6ac781b30c99bd3710711961c15dbf3a51e010b61156779fd85935cd5818e0facf9a662bd289b04e4b91761e5ebd1edd  impacket-0.9.21.tar.gz"
